import sys
from PyQt5.QtWidgets import QApplication, QLabel

'''测试安装'''
if __name__ == '__main__':
    app = QApplication(sys.argv)  # 1
    label = QLabel("hello world") # 2
    label.show()                  # 3
    sys.exit(app.exec_())         # 4